//
//  User.m
<<<<<<< HEAD
//  砼车Demo
//
//  Created by apple on 16/1/7.
//  Copyright © 2016年 apple. All rights reserved.
=======
//  特种车调度
//
//  Created by 陈宇 on 15/9/2.
//
>>>>>>> e1fec46fee2cf4a7da9143f12b57f65e3dc3a2bd
//

#import "User.h"

@implementation User

- (id)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        _ID = [aDecoder decodeIntegerForKey:@"_ID"];
        _disId = [aDecoder decodeObjectForKey:@"_disId"];
        _ownId = [aDecoder decodeObjectForKey:@"_ownId"];
        _fullName = [aDecoder decodeObjectForKey:@"_fullName"];
        _name = [aDecoder decodeObjectForKey:@"_name"];
        _icon = [aDecoder decodeObjectForKey:@"_icon"];
        _phone = [aDecoder decodeObjectForKey:@"_phone"];
        _address = [aDecoder decodeObjectForKey:@"_address"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    if (_ID) {
        [aCoder encodeInteger:_ID forKey:@"_ID"];
    }
<<<<<<< HEAD
    
    if (![BMUtils isEmptyString:_disId]) {
        [aCoder encodeObject:_disId forKey:@"_disId"];
    }
    
=======
    if (![BMUtils isEmptyString:_disId]) {
        [aCoder encodeObject:_disId forKey:@"_disId"];
    }
>>>>>>> e1fec46fee2cf4a7da9143f12b57f65e3dc3a2bd
    if (![BMUtils isEmptyString:_ownId]) {
        [aCoder encodeObject:_ownId forKey:@"_ownId"];
    }
    if (![BMUtils isEmptyString:_fullName]) {
        [aCoder encodeObject:_fullName forKey:@"_fullName"];
    }
    if (![BMUtils isEmptyString:_name]) {
        [aCoder encodeObject:_name forKey:@"_name"];
    }
    if (![BMUtils isEmptyString:_icon]) {
        [aCoder encodeObject:_icon forKey:@"_icon"];
    }
    if (![BMUtils isEmptyString:_phone]) {
        [aCoder encodeObject:_phone forKey:@"_phone"];
    }
    if (![BMUtils isEmptyString:_address]) {
        [aCoder encodeObject:_address forKey:@"_address"];
    }
}

<<<<<<< HEAD

@end
=======
@end


>>>>>>> e1fec46fee2cf4a7da9143f12b57f65e3dc3a2bd
